export const mixinDemo = {
  data() {
    return {
      mixinData: 'mixinData',
      mixinData1: 'mixinData1'
    }
  },
  watch: {
    'mixinData'(val) {
      console.log('修改了mixinData的值为：', this.mixinData)
    }
  },
  computed: {
    'mixinComputedData'() {
      return this.mixinData + '-----------computed'
    }
  },
  methods: {
    mixinFunc() {
      console.log('这是mixin方法')
    },
    mixinFunc2() {
      console.log('这是mixin的方法，会被覆盖,你如果看到我说明程序出错');
    }
  },
  created() {
    console.log('mixin初始化')
  }
};
